package com.memory.modules.business.service.earn;

import com.memory.modules.business.domain.earn.DayEarn;
import org.springframework.data.domain.Example;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;

import java.util.Date;
import java.util.Optional;

/**
 * @PackageName: com.memory.modules.business.service.earn
 * @ClassName: DayEarnService
 * @Description:
 * @author: zhuguangxun
 * @date 2021/3/11
 */
public interface DayEarnService {
    DayEarn create(DayEarn earn);

    DayEarn modify(Long id, DayEarn earn);

    DayEarn remove(Long id);

    DayEarn findByDate(Date date);

    Optional<DayEarn> findById(Long id);

    Page<DayEarn> findPage(Example<DayEarn> example);
}
